import request from '@/utils/request'

// 查询角色列表
export function saleList() {
  return request({
    url: '/customer/info/saleList',
    method: 'get'
  })
}

export function listCustomer(query) {
  return request({
    url: '/customer/info/list',
    method: 'get',
    params: query
  })
}

export function getCustomer(customerId) {
  return request({
    url: '/customer/info/' + customerId,
    method: 'get'
  })
}

export function updateCustomer(data) {
  return request({
    url: '/customer/info/',
    method: 'put',
    data: data
  })
}
